﻿using System.Collections.Generic;
using Renren.Services;

namespace Renren.ServiceProviders
{
    public class GoogleServiceProvider : ServiceProvider
    {
        public readonly static GoogleServiceProvider Instance = new GoogleServiceProvider();

        private GoogleServiceProvider() : base(ServiceProviderType.Google) { }

        protected override string ApiUriBase
        {
            get { return "https://maps.googleapis.com/maps/api/place/search/json"; }
        }

        protected override Dictionary<string, string> GetFinalParameters(Dictionary<string, string> parameters)
        {
            parameters.Add("key", GoogleSettings.ApiKey);
            return parameters;
        }

        // TODO
        public override bool CheckResponseResult(string result)
        {
            return true;
        }
    }
}
